package com.itheima.d2_generic;

import java.util.ArrayList;

/**
 * 自定义泛型类
 * @param <E>
 */



public class MyArrayList <E>{
    private ArrayList list = new ArrayList();


    //方法
    public boolean add(E e) {
        list.add(e);
        return true;
    }

    public boolean remove(E e){
        return list.remove(e);
    }
    @Override
    public String toString() {
        return list.toString();
    }



}

